<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>文章列表--layui后台管理模板</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
<link rel="stylesheet"
	href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all" />
<link rel="stylesheet" href="../../css/news.css" media="all" />
</head>
<body class="childrenBody">
	<form  method="post">
		<blockquote class="layui-elem-quote news_search">
			<div class="layui-inline">
				<div class="layui-input-inline">
					<input type="text" value="" placeholder="请输入关键字"
						class="layui-input search_input" name="news_title" id="title">
				</div>
				<a class="layui-btn " id="search" >查询</a>
			</div>
			<div class="layui-inline">
				<a class="layui-btn layui-btn-normal newsAdd_btn">添加文章</a>
			</div>
			<div class="layui-inline">
				<a class="layui-btn layui-btn-danger batchDel">批量删除</a>
			</div>
			<div class="layui-inline">
				<select class="layui-input" id="categoryId" name="category.cate_id">
				</select>
			</div>
			<div class="layui-inline">
				<a class="layui-btn " id="aaa">筛选</a>
			</div>
		</blockquote>
	</form>
	<div class="layui-form news_list">
		<table class="layui-table">
			<colgroup>
				<col width="45">
				<col>
				<col width="9%">
				<col width="9%">
				<col width="14%">
				<col width="15%">
			</colgroup>
			<thead id="neirong">
				<tr>
					<th><input type="checkbox" name="" lay-skin="primary"
						lay-filter="allChoose" id="allChoose"></th>
					<th style="text-align: left;">文章标题</th>
					<th>发布人</th>
					<!-- <th>浏览权限</th> -->
					<th>是否展示</th>
					<th>发布时间</th>
					<th>操作</th>
				</tr>

			</thead>
			<tbody class="news_content"></tbody>
		</table>
	</div>
	<div id="page"></div>
	<script type="text/javascript" src="../../layui/layui.js"></script>
	<script type="text/javascript" src="../../js/jquery.min.js"></script>
	<script type="text/javascript" src="newsList.js"></script>
	<script type="text/javascript">
		layui.use('element', function(){
			  var element = layui.element;
			  
			});
		$(function(){
			var url = "/xjeca/adminCategory_findCategoryAll?state=0";
			var param="";
			$.post(url,param,function(data){
				$(data).each(function(i,n){
					$("#categoryId").append("<option value='"+n.cate_id+"'>"+n.cate_name+"</option>");
				});
			});
		});
	</script>
</body>
</html>
